package com.song.entity.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class PwdEntity {

    @NotBlank(message = "不允许为空")
    @Size(min = 6, max = 20)
    private String password;

    @NotBlank(message = "不允许为空")
    @Size(min = 6, max = 20, message = "请确保长度范围在[6,20]")
    private String confirmPwd;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }

    @Override
    public String toString() {
        return "PwdEntity{" +
                "password='" + password + '\'' +
                ", confirmPwd='" + confirmPwd + '\'' +
                '}';
    }
}
